package com.service;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.bean.Room;

@Transactional
public interface RoomService {
	
	int deleteByPrimaryKey(Integer id);

    int insert(Room record);

    int insertSelective(Room record);

    Room selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Room record);

    int updateByPrimaryKey(Room record);
    
    List<Room> select(Map map);
    
    List<Room> selectByuidState(Map map);


    
    int updateByidstate(Map map);

	public List<Room> selectByProjectId(Integer pid);
	
	int inserttotal(Map<String,Object> rooms);

	List<Room> selectByProjectIdToCh(Integer pid);

	void updateByPrimaryKeyToCh(Integer rid);

	void updateByPrimaryKeyToDel(Integer rid);

	void updateToOpen(Integer opid);

	void updateByPidKeyToCh(Integer pid);

	void updateByPidToDel(Integer pid);

}
